<template>
    <div class="log">
        <div class="logSearch">
            <el-form :model="logFrom" :inline="true" label-width="auto" class="demo-form-inline">
                <el-form-item>
                    <el-input placeholder="标题" v-model="logFrom.title" />
                </el-form-item>
                <el-form-item>
                    <el-select v-model="logFrom.state" placeholder="动向">
                        <el-option label="Zone one" value="shanghai" />
                        <el-option label="Zone two" value="beijing" />
                    </el-select>
                </el-form-item>
                <el-form-item>
                    <el-select v-model="logFrom.type" placeholder="去向">
                        <el-option label="Zone one" value="shanghai" />
                        <el-option label="Zone two" value="beijing" />
                    </el-select>
                </el-form-item>
                <el-form-item>
                    <el-button type="primary">查询</el-button>
                    <el-button>重置</el-button>
                </el-form-item>
            </el-form>
        </div>
        <div class="logTable">
            <el-table :height="'450px'" :data="tableData" border style="width: 100%">
                <el-table-column prop="id" label="ID" width="180" />
                <el-table-column prop="name" label="Name" />
                <el-table-column prop="amount1" sortable label="Amount 1" />
                <el-table-column prop="amount2" sortable label="Amount 2" />
                <el-table-column prop="amount3" sortable label="Amount 3" />
                <el-table-column label="操作">
                    <el-button type="primary" text>预览</el-button>
                    <el-button type="primary" text>下载</el-button>
                </el-table-column>
            </el-table>
            <div class="pagin">
                <el-pagination background layout="prev, pager, next" :total="1000" />
            </div>
        </div>
    </div>
</template>
<script setup>
import {ref} from 'vue'
let logFrom = ref({
    title:'',
    state:'',
    type:'',
    level:'',
    updateTime:''
});
let tableData = [
  {
    id: '12987122',
    name: 'Tom',
    amount1: '234',
    amount2: '3.2',
    amount3: 10,
  },
  {
    id: '12987123',
    name: 'Tom',
    amount1: '165',
    amount2: '4.43',
    amount3: 12,
  },
  {
    id: '12987124',
    name: 'Tom',
    amount1: '324',
    amount2: '1.9',
    amount3: 9,
  },
  {
    id: '12987125',
    name: 'Tom',
    amount1: '621',
    amount2: '2.2',
    amount3: 17,
  },
  {
    id: '12987126',
    name: 'Tom',
    amount1: '539',
    amount2: '4.1',
    amount3: 15,
  },
];
</script>
<style scoped>
.demo-form-inline .el-input {
  --el-input-width: 220px;
}

.demo-form-inline .el-select {
  --el-select-width: 220px;
}
.pagin{
    width: 100%;
    margin: 10px 0;
}
</style>